package com.example.wechatapi;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author jie
 * @date 2021/5/7 -11:18
 */
@RestController
public class TestController {
    private final Logger logger = LoggerFactory.getLogger(this.getClass());
    @Autowired
    private WechatService wechatService;

    @GetMapping("/")
    public void test() {
        wechatService.push();
        logger.info("异步");
    }


}
